package com.example.shixun.dao;

import com.example.shixun.pojo.Course;
import com.example.shixun.pojo.School;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author XDW
 * @Version 1.0
 * @date 2023/6/21 16:03
 */
@Mapper
public interface CourseDao {
    public Integer saveCourse(Course course);
    public Integer deleteCourseById(int id);
    public Integer deleteCourseByName(String name);
    public Course selectCourseById(int id);
    public Course selectCourseByName(String name);
    public List<Course> selectCourseAll(Course course);
    public Integer updateCourse(Course Course);
    public List<Course> findByTeacherId(Course course);
    public Integer addStudent(Integer id);
    public Integer subStudent(Integer id);
    public Integer addLike(Integer id);
    public Integer subLike(Integer id);

}
